package common

import (
	"github.com/gin-gonic/gin"
)

// GetUInt64 returns the value associated with the key as an integer.
func GetUInt64FromContext(c *gin.Context, key string) (ui64 uint64) {
	if val, ok := c.Get(key); ok && val != nil {
		ui64, _ = val.(uint64)
	}
	return
}
